<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>strategy::line_interpolate::cartesian</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Geometry">
<link rel="up" href="../strategies.html" title="Strategies">
<link rel="prev" href="strategy_distance_cross_track_point_box.html" title="strategy::distance::cross_track_point_box">
<link rel="next" href="strategy_line_interpolate_geographic.html" title="strategy::line_interpolate::geographic">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="strategy_distance_cross_track_point_box.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../strategies.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="strategy_line_interpolate_geographic.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="geometry.reference.strategies.strategy_line_interpolate_cartesian"></a><a class="link" href="strategy_line_interpolate_cartesian.html" title="strategy::line_interpolate::cartesian">strategy::line_interpolate::cartesian</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="idm97323"></a><a class="indexterm" name="idm97325"></a><a class="indexterm" name="idm97327"></a>
Interpolate point on a cartesian segment.
        </p>
<h6>
<a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.h0"></a>
          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.synopsis"></a></span><a class="link" href="strategy_line_interpolate_cartesian.html#geometry.reference.strategies.strategy_line_interpolate_cartesian.synopsis">Synopsis</a>
        </h6>
<p>
</p>
<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">CalculationType</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">DistanceStrategy</span><span class="special">&gt;</span>
<span class="keyword">class</span> <span class="identifier">strategy</span><span class="special">::</span><span class="identifier">line_interpolate</span><span class="special">::</span><span class="identifier">cartesian</span>
<span class="special">{</span>
  <span class="comment">// ...</span>
<span class="special">};</span>
</pre>
<p>
        </p>
<h6>
<a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.h1"></a>
          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.template_parameter_s_"></a></span><a class="link" href="strategy_line_interpolate_cartesian.html#geometry.reference.strategies.strategy_line_interpolate_cartesian.template_parameter_s_">Template
          parameter(s)</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Parameter
                  </p>
                </th>
<th>
                  <p>
                    Default
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    typename CalculationType
                  </p>
                </td>
<td>
                  <p>
                    void
                  </p>
                </td>
<td>
                  <p>
                    numeric type for calculation (e.g. high precision); if <span class="bold"><strong>void</strong></span> then it is extracted automatically
                    from the coordinate type and (if necessary) promoted to floating
                    point
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    typename DistanceStrategy
                  </p>
                </td>
<td>
                  <p>
                    distance::pythagoras&lt;CalculationType&gt;
                  </p>
                </td>
<td>
                  <p>
                    The underlying point-point distance strategy
                  </p>
                </td>
</tr>
</tbody>
</table></div>
<h6>
<a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.h2"></a>
          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.member_function_s_"></a></span><a class="link" href="strategy_line_interpolate_cartesian.html#geometry.reference.strategies.strategy_line_interpolate_cartesian.member_function_s_">Member
          Function(s)</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Function
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
<th>
                  <p>
                    Parameters
                  </p>
                </th>
<th>
                  <p>
                    Returns
                  </p>
                </th>
</tr></thead>
<tbody><tr>
<td>
                  <p>
</p>
<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Point</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Fraction</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Distance</span><span class="special">&gt;</span>
<span class="keyword">void</span> <span class="identifier">apply</span><span class="special">(</span><span class="identifier">Point</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p0</span><span class="special">,</span> <span class="identifier">Point</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">Fraction</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">fraction</span><span class="special">,</span>
           <span class="identifier">Point</span> <span class="special">&amp;</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">Distance</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="special">)</span></pre>
<p>
                  </p>
                </td>
<td>
                </td>
<td>
                  <p>
                    <span class="bold"><strong>Point const &amp;</strong></span>: <span class="emphasis"><em>p0</em></span>:
                  </p>
                  <p>
                    <span class="bold"><strong>Point const &amp;</strong></span>: <span class="emphasis"><em>p1</em></span>:
                  </p>
                  <p>
                    <span class="bold"><strong>Fraction const &amp;</strong></span>: <span class="emphasis"><em>fraction</em></span>:
                  </p>
                  <p>
                    <span class="bold"><strong>Point &amp;</strong></span>: <span class="emphasis"><em>p</em></span>:
                  </p>
                  <p>
                    <span class="bold"><strong>Distance const &amp;</strong></span>: <span class="emphasis"><em></em></span>:
                  </p>
                </td>
<td>
                </td>
</tr></tbody>
</table></div>
<h6>
<a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.h3"></a>
          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.header"></a></span><a class="link" href="strategy_line_interpolate_cartesian.html#geometry.reference.strategies.strategy_line_interpolate_cartesian.header">Header</a>
        </h6>
<p>
          <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">strategies</span><span class="special">/</span><span class="identifier">cartesian</span><span class="special">/</span><span class="identifier">line_interpolate</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
        </p>
<h6>
<a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.h4"></a>
          <span class="phrase"><a name="geometry.reference.strategies.strategy_line_interpolate_cartesian.see_also"></a></span><a class="link" href="strategy_line_interpolate_cartesian.html#geometry.reference.strategies.strategy_line_interpolate_cartesian.see_also">See
          also</a>
        </h6>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
              <a class="link" href="../algorithms/line_interpolate/line_interpolate_4_with_strategy.html" title="line_interpolate (with strategy)">line_interpolate
              (with strategy)</a>
            </li></ul></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2009-2021 Barend Gehrels,
      Bruno Lalande, Mateusz Loskot, Adam Wulkiewicz, Oracle and/or its affiliates<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="strategy_distance_cross_track_point_box.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../strategies.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="strategy_line_interpolate_geographic.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
